package ui;

import java.awt.Dimension;

import javax.swing.JFrame;

import util.MemoryConsumer;

public class MemoryMonitor {
	public static void main(String s[]) {
		MemoryMonitorPanel pane = new MemoryMonitorPanel();
		JFrame f = new JFrame("MemoryMonitor");
		f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		f.setContentPane(pane);
		f.setSize(new Dimension(400, 500));
		f.setVisible(true);
		pane.surface.start();
		Thread consumer = new Thread(new MemoryConsumer());
		consumer.start();
	}
}
